<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<x:parse xml="${param.xmlstr}" var="xmlData"/>
<div class="t_bar"><span class="color_red">*</span>${param.title}</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
    <col style="width:20%"/>
    <col style="width:30%"/>
    <col style="width:20%"/>
    <col style="width:30%"/>
    <tr>
        <td align="right">申报单位名称（全称）：</td>
        <td colspan="3">
            <input name="proposal/organization/org_name_quancheng" style="width: 80%" class="required" label="申报单位名称"
                   maxlength="100" value="<x:out select="$xmlData/data/proposal/organization/org_name_quancheng" />">
        </td>
    </tr>
    <tr>
        <td align="right" colspan="1">项目名称（申请补助品种）：</td>
        <td colspan="3">
            <input type='text' name='proposal/zh_title' id='zh_title' style="width: 80%" class="input_css required "
                   maxlength="100" value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目名称">
        </td>
    </tr>
    <tr>
        <td align="right">归口管理单位：</td>
        <td>
            <c:set var="recomend_org"> {'id':'<x:out
                    select="$xmlData/data/proposal/recomend_org_value"/>', 'name':'<x:out
                    select="$xmlData/data/proposal/recomend_org_name"/>' } </c:set>
            <cpt:tree id="recomend_org" key="recommended_org" cacheable="false"
                      className="hn_iuput_kuang required selectWidth3" readonly="true" value="${recomend_org}"
                      label="归口管理单位"
                      showPattern="all" shieldPattern="0" onClick="initTreeValue2">
            </cpt:tree>
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_value" />">
            <input type="hidden" name="proposal/recomend_org_name"
                   value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
        </td>
        <td align="right">申报日期：</td>
        <td>
            <c:set var="submit_date">
                <x:out select="$xmlData/data/proposal/submit_date"/>
            </c:set>
            <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date"
                      label="申报日期"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">企业所处行政区域：</td>
        <td>
            <input name="proposal/organization/areaname_city" maxlength="20" class="required" label="企业所处行政区域-市"
                   value="<x:out select="$xmlData/data/proposal/organization/areaname_city" />">市
        </td>
        <td colspan="2">
            <input name="proposal/organization/areaname_county" maxlength="20" class="required" label="企业所处行政区域-县（区）"
                   value="<x:out select="$xmlData/data/proposal/organization/areaname_county" />">县（区）
        </td>
    </tr>
    <tr>
        <td align="right">法人类型：</td>
        <td>
            <cpt:checkbox key="legal_psn_type" name="legal_psn_type" tagType="radio" repeatColumn="3"
                          style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
            <input type="hidden" name="proposal/legal_psn_type_value" class="required" label="法人类型"
                   value="<x:out select="$xmlData/data/proposal/legal_psn_type_value" />"/>
            <input type="hidden" name="proposal/legal_psn_type_name"
                   value="<x:out select="$xmlData/data/proposal/legal_psn_type_name" />"/>
        </td>
        <td align="right">法人代码：</td>
        <td>
            <input type="text" name="organizations/participating_units/org_no" maxlength="30"
                   id="participating_units_org_no" label="法人代码" required class="input_css required"
                   value="<x:out select="$xmlData/data/organizations/participating_units/org_no" />"/>
        </td>
    </tr>
    <tr style="display: none;"></tr>
    <tr>
        <td align="right">法定代表人：</td>
        <td>
            <input name="proposal/legal_psn_name" maxlength="50" class="required" label="法定代表人"
                   value="<x:out select="$xmlData/data/proposal/legal_psn_name" />"/>
        </td>
        <td align="right">手机号：</td>
        <td>
            <input name="proposal/legal_psn_mobiel" maxlength="11" class="required mobile" label="法定代表人-->手机号"
                   onfocus="InitInput.setInt(this, 11)"
                   value="<x:out select="$xmlData/data/proposal/legal_psn_mobiel" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">联系人：</td>
        <td>
            <input name="proposal/contact_psn_name" maxlength="50" class="required" label="联系人"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_name" />"/>
        </td>
        <td align="right">手机号：</td>
        <td>
            <input name="proposal/contact_psn_mobiel" maxlength="11" class="required mobile" label="联系人-->手机号"
                   onfocus="InitInput.setInt(this, 11)"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_mobiel" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">通讯地址：</td>
        <td>
            <input name="proposal/communication_address" maxlength="50" class="required" label="通讯地址"
                   value="<x:out select="$xmlData/data/proposal/communication_address" />"/>
        </td>
        <td align="right">联系人电子邮箱：</td>
        <td>
            <input name="proposal/contact_psn_email" maxlength="50" class="required email" label="联系人电子邮箱"
                   value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">项目负责人：</td>
        <td>
            <span name="proposal/fzr_psnname">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>
            </span>
        </td>
        <td align="right">电子邮箱：</td>
        <td>
            <span name="proposal/fzr_email">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">手机号码：</td>
        <td>
            <span name="proposal/fzr_mobile">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>
            </span>
        </td>
        <td align="right">联系电话：</td>
        <td>
            <span name="proposal/fzr_tel">
                <x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">项目申请金额（万元）：</td>
        <td colspan="3">
            <input name="proposal/request_amt" id="request_amt" class="input_css required " label="项目申请金额"
                   style="text-align: right" onfocus="InitInput.setNumber(this,7,2,2)"
                   value="<x:out select="$xmlData/data/proposal/request_amt" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">经济性质：</td>
        <td colspan="3">
            <cpt:checkbox key="economic_nature" name="economic_type" tagType="radio" repeatColumn="4"
                          style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
            <input type="hidden" name="proposal/economic_type_value" class="required" label="经济性质"
                   value="<x:out select="$xmlData/data/proposal/economic_type_value" />"/>
            <input type="hidden" name="proposal/economic_type_name"
                   value="<x:out select="$xmlData/data/proposal/economic_type_name" />"/>
        </td>
    </tr>
    <tr style="display: none;"></tr>
    <tr>
        <td align="right">新品种名称：</td>
        <td colspan="3">
            <input name="proposal/breed_name" maxlength="50" style="width: 80%" class="required" label="新品种名称"
                   value="<x:out select="$xmlData/data/proposal/breed_name" />"/>
        </td>
    </tr>
    <tr>
        <td align="right">审定部门：</td>
        <td>
            <input name="proposal/audit_dept" maxlength="50" class="required" label="审定部门"
                   value="<x:out select="$xmlData/data/proposal/audit_dept" />"/>
        </td>
        <td align="right">审定日期：<x:out select="$xmlData/proposal/audit_date" escapeXml="false"/></td>
        <td>
            <c:set var="audit_date" scope="page"><x:out select="$xmlData/data/proposal/audit_date" escapeXml="false"/></c:set>
            <cpt:date id="audit_date" name="proposal/audit_date" value="${audit_date}"
                      className="input_css required date" label="审定日期"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">证书编号：</td>
        <td>
            <input name="proposal/certificate_num" maxlength="30" class="required" label="证书编号"
                   value="<x:out select="$xmlData/data/proposal/certificate_num" />"/>
        </td>
        <td align="right">公告文号：</td>
        <td>
            <input name="proposal/announcement_number" maxlength="30" class="required" label="公告文号"
                   value="<x:out select="$xmlData/data/proposal/announcement_number" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" rowspan="8">推广情况及经济社会效益：</td>
        <td align="right" colspan="2">制（繁育）种量（公斤）：</td>
        <td>
            <input style="text-align: right;" name="proposal/make_number" onfocus="InitInput.setNumber(this,7,2,2)"
                   class="required" label="推广情况及经济社会效益-->制（繁育）种量"
                   value="<x:out select="$xmlData/data/proposal/make_number" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">销售量（公斤）：</td>
        <td>
            <input style="text-align: right;" name="proposal/sell_number" onfocus="InitInput.setNumber(this,7,2,2)"
                   class="required" label="推广情况及经济社会效益-->销售量"
                   value="<x:out select="$xmlData/data/proposal/sell_number" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">推广面积（亩）：</td>
        <td>
            <input style="text-align: right;" name="proposal/generalize_acreage"
                   onfocus="InitInput.setNumber(this,7,2,2)" class="required" label="推广情况及经济社会效益-->推广面积"
                   value="<x:out select="$xmlData/data/proposal/generalize_acreage" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">品种转让推广协议制（繁育）种量（公斤）：</td>
        <td>
            <input style="text-align: right;" name="proposal/agreement_make_number" id="agreement_make_number"
                   onfocus="InitInput.setNumber(this,7,2,2)" label="推广情况及经济社会效益-->品种转让推广协议制（繁育）种量"
                   value="<x:out select="$xmlData/data/proposal/agreement_make_number" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">品种转让推广协议转让费（万元）：</td>
        <td>
            <input style="text-align: right;" name="proposal/agreement_make_money" id="agreement_make_money"
                   onfocus="InitInput.setNumber(this,7,2,2)" label="推广情况及经济社会效益-->品种转让推广协议转让费"
                   value="<x:out select="$xmlData/data/proposal/agreement_make_money" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">畜牧家禽父母代销售量（只）：</td>
        <td>
            <input style="text-align: right;" name="proposal/parents_sell_number" id="parents_sell_number"
                   onfocus="InitInput.setNumber(this,7,0,0)" label="推广情况及经济社会效益-->畜牧家禽父母代销售量"
                   value="<x:out select="$xmlData/data/proposal/parents_sell_number" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">水产新品种苗种销售量（公斤）：</td>
        <td>
            <input style="text-align: right;" name="proposal/new_sell_gongj" id="new_sell_gongj"
                   onfocus="InitInput.setNumber(this,7,2,2)" label="推广情况及经济社会效益-->水产新品种苗种销售量"
                   value="<x:out select="$xmlData/data/proposal/new_sell_gongj" />"/>
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">水产新品种苗种销售量（万尾）：</td>
        <td>
            <input style="text-align: right;" name="proposal/new_sell_number" id="new_sell_number"
                   onfocus="InitInput.setNumber(this,7,0,0)" label="推广情况及经济社会效益-->水产新品种苗种销售量"
                   value="<x:out select="$xmlData/data/proposal/new_sell_number" />"/>
        </td>
    </tr>
</table>
<script type="text/javascript">
    function initTreeValueExt(treeId, treeNode) {
        if ((treeNode && treeNode.isParent)) {
            scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
            $("#" + treeId).val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
            $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
            return false;
        }
        var str = treeNode.name;
        var obj = treeNode.parentNode;
        while (obj != null) {
            str = obj.name + "-" + str;
            obj = obj.parentNode;
        }

        $("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
        $("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
    }
</script>	